package com.kws.system.domain.merchant;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 商品-服务(Serve)表实体类
 *
 * @author yxy
 * @since 2024-10-22 16:03:29
 */
public class TbServe implements Serializable {
    private static final long serialVersionUID = -94022172500465105L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("商家")
    private Long merchantId;
    @ApiModelProperty("商家名称")
    @TableField(exist = false)
    private String merchantName;
    @ApiModelProperty("服务分类-多级选择")
    private String type;

    @ApiModelProperty("价格标签0准确价格 1建议价格 2区间价格 3咨询商家")
    private Integer priceTag;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("主图")
    private String img;
    @ApiModelProperty("图片-多张")
    @TableField(exist = false)
    private List<String> imgArr;
    @ApiModelProperty("描述")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("设备状态0上架 1下架 2审核中")
    private Integer status;

    @ApiModelProperty("服务标签0特惠服务 1热门服务 2推荐服务 3视频号")
    private Integer serveTag;

    @TableField(exist = false)
    @ApiModelProperty("商品类型(0设备 1服务)")
    private Integer  goodType = 1;

    @ApiModelProperty(value = "审核状态：0-待审核，1-一审通过，2-审核通过，3-驳回")
    private String auditStatus;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getPriceTag() {
        return priceTag;
    }

    public void setPriceTag(Integer priceTag) {
        this.priceTag = priceTag;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public List<String> getImgArr() {
        return imgArr;
    }

    public void setImgArr(List<String> imgArr) {
        this.imgArr = imgArr;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getServeTag() {
        return serveTag;
    }

    public void setServeTag(Integer serveTag) {
        this.serveTag = serveTag;
    }

    public Integer getGoodType() {
        return goodType;
    }

    public void setGoodType(Integer goodType) {
        this.goodType = goodType;
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }
}
